import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //指令下达
  saveInstruction: (query) => api.post(`${config.interfaces.type1}bondTrade/saveInstruction`, query),
  //获取持仓信息
  getPosition: (query) => api.get(`${config.interfaces.type5}instrument-server/stock/getStockHoldInfo`, query),
  //获取股票信息1
  getStock1: (query) => api.get(`${config.interfaces.type5}instrument-server/stock/queryStatus`, query),
  //获取股票信息2
  getStock2: (query) => api.get(`${config.interfaces.type5}instrument-server/stock/getStockBasicInfo`, query),
  //
  queryFund: (query) => api.get(`${config.interfaces.type1}fundAccount/queryFund`, query),
};
